package org.payeco.risk.entity;

import java.io.Serializable;
import java.util.Date;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "PAYECO_RULEMODULAR")
@NamedQuery(name = "PayecoRuleModular.findByModularNo", query = "select p from PayecoRuleModular p where p.modularNo=?1")
public class PayecoRuleModular implements Serializable, Cloneable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	private Long ID;
	@Column(name = "MODULAR_NO", length = 20)
	private String modularNo;
	@Column(name = "MODULAR_NAME", length = 50)
	private String modularName;
	@Column(name = "DESCRIPTION", length = 128)
	private String description;
	@Column(name = "PRIORITY", nullable = false)
	private Integer priority;
	@Column(name = "STATE", length = 10)
	private String state;
	@Column(name = "USERLEVEL", length = 128)
	private String userlevel;
	@Column(name = "ACCOUNTTYPE", length = 50)
	private String accountType = "";
	@Column(name = "BANKS", length = 512)
	private String banks = "";
	@Column(name = "INDUSTRYS", length = 1024)
	private String industrys = "";
	@Column(name = "SYSMERCHANTNOES", length = 512)
	private String sysmerchantnoes = "";
	@Column(name = "PARENT_MODULAR_NO", length = 20)
	private String parentModularNo;
	@Column(name = "CREATEDBY", length = 50)
	private String createdby = "system";
	@Column(name = "CREATEDDT")
	private Date createddt;
	@Column(name = "MODIFIEDBY", length = 50)
	private String modifyedby = "system";
	@Column(name = "MODIFIEDDT")
	private Date modifieddt;
	@Column(name = "checkmode", length = 30)
	private String checkmode;
	
	

	public PayecoRuleModular() {
		// TODO Auto-generated constructor stub
	}

	public PayecoRuleModular(String modularNo, String modularName) {
		this.modularNo = modularNo;
		this.modularName = modularName;
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		return super.clone();
	}

	public Long getID() {
		return ID;
	}

	public void setID(Long iD) {
		ID = iD;
	}

	public String getModularNo() {
		return modularNo;
	}

	public void setModularNo(String modularNo) {
		this.modularNo = modularNo;
	}

	public String getModularName() {
		return modularName;
	}

	public void setModularName(String modularName) {
		this.modularName = modularName;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getPriority() {
		return priority;
	}

	public void setPriority(Integer priority) {
		this.priority = priority;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getUserlevel() {
		return userlevel;
	}

	public void setUserlevel(String userlevel) {
		this.userlevel = userlevel;
	}

	public String getAccountType() {
		return accountType;
	}

	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}

	public String getBanks() {
		return banks;
	}

	public void setBanks(String banks) {
		this.banks = banks;
	}

	public String getIndustrys() {
		return industrys;
	}

	public void setIndustrys(String industrys) {
		this.industrys = industrys;
	}

	public String getSysmerchantnoes() {
		return sysmerchantnoes;
	}

	public void setSysmerchantnoes(String sysmerchantnoes) {
		this.sysmerchantnoes = sysmerchantnoes;
	}

	public String getParentModularNo() {
		return parentModularNo;
	}

	public void setParentModularNo(String parentModularNo) {
		this.parentModularNo = parentModularNo;
	}

	public String getCreatedby() {
		return createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public Date getCreateddt() {
		return createddt;
	}

	public void setCreateddt(Date createddt) {
		this.createddt = createddt;
	}

	public String getModifyedby() {
		return modifyedby;
	}

	public void setModifyedby(String modifyedby) {
		this.modifyedby = modifyedby;
	}

	public Date getModifieddt() {
		return modifieddt;
	}

	public void setModifieddt(Date modifieddt) {
		this.modifieddt = modifieddt;
	}

	public String getCheckmode() {
		return checkmode;
	}

	public void setCheckmode(String checkmode) {
		this.checkmode = checkmode;
	}

}
